package com.gzdh.dishrecognition.ui.pre;

import android.content.Context;
import android.view.Display;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.gzdh.dishrecognition.R;
import com.gzdh.dishrecognition.ui.base.BasePresentation;

public class ShowCardPre extends BasePresentation {


    private LinearLayout leftPriceView;

    private LinearLayout cardInfoLinear;

    private TextView btyeTv;

    private TextView kyeTv;


    public ShowCardPre(Context outerContext, Display display) {
        super(outerContext, display);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.pre_select_pay;
    }

    @Override
    protected void initView() {
        leftPriceView = findViewById(R.id.leftPriceView);
        cardInfoLinear = findViewById(R.id.cardInfoLinear);
        btyeTv = findViewById(R.id.btyeTv);
        kyeTv = findViewById(R.id.kyeTv);
    }

    @Override
    protected void initData() {
        leftPriceView.setVisibility(View.INVISIBLE);
        cardInfoLinear.setVisibility(View.VISIBLE);

    }


    public void showCard(String kye, String btye) {
        btyeTv.setText("补贴余额：" + btye);
        kyeTv.setText("卡余额：" + kye);

    }

}
